/*
* 文章api
*
*/

import { postRequest, getRequest } from '@/lib/axios';

export const articleApi = {
    /*
    * 文章列表
    *
    */
    list: (params) => {
        return postRequest('/api/public/web/article/list', params);
    },

    /*
    * 根据id 查询
    *
    */
    findOne: (params) => {
        return postRequest('/api/public/web/article/findOne', params);
    },

    /*
    * 点赞
    *
    */
    like: (params) => {
        return postRequest('/api/public/web/article/like', params);
    },

    /*
    * 取消点赞
    *
    */
    cancelLike: (params) => {
        return postRequest('/api/public/web/article/cancelLike', params);
    },
}